<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*-----------------------------------------------------------------------------------------------
Get_fields_block()
-----------------------------------------------------------------------------------------------*/
class Get_fields_block extends Front_Controller{
    var $init;
	function Get_fields_block(){
        parent::Front_Controller();
	}		
	
	function index() {
		$CI = &get_instance();
		$CI->db->select('f.*');
		$CI->db->from(FIELDS.' f');		
		$CI->db->where(FIELDS_STATUS,1);
		$q = $CI->db->get();
		$fields = $q->result();
			
		$this->add('fields', $fields);

		$this->view(get_class($this));
		
	}
}